package org.ucas.faker.web.utils.fishbone;



import java.util.ArrayList;
import java.util.List;

public class FishboneResult {

    private List<Tag> tagList = new ArrayList<Tag>();
    private List<Line> lineList = new ArrayList<Line>();
    private List<Circle> circleList = new ArrayList<Circle>();
    private List<Polygon> polygonList = new ArrayList<Polygon>();

    private double xmax = 100.0;

    /**
     * 鱼骨架的末端点位置
     */
    private double boneEndPoint = 90.0;

    /**
     * 鱼身的末端点位置
     */
    private double bodyEndPoint = 95.0;

    public FishboneResult(){
        this.tagList = new ArrayList<Tag>();
        this.lineList = new ArrayList<Line>();
        this.circleList = new ArrayList<Circle>();     
    }

    public List<Tag> getTagList() {
        return tagList;
    }

    public void setTagList(List<Tag> tagList) {
        this.tagList = tagList;
    }

    public void addTag(Tag tag){
        this.tagList.add(tag);
    }

    public double getBodyEndPoint() {
        return bodyEndPoint;
    }

    public void setBodyEndPoint(double bodyEndPoint) {
        this.bodyEndPoint = bodyEndPoint;
    }

    public double getBoneEndPoint() {
        return boneEndPoint;
    }

    public void setBoneEndPoint(double boneEndPoint) {
        this.boneEndPoint = boneEndPoint;
    }

    public void setXmax(double xmax) {
        this.xmax = xmax;
    }

    public double getXmax() {
        return xmax;
    }

    public List<Line> getLineList() {
        return lineList;
    }

    public void setLineList(List<Line> lineList) {
        this.lineList = lineList;
    }

    public void addLine(Line line){
        this.lineList.add(line);
    }

    public List<Circle> getCircleList() {
        return circleList;
    }

    public void setCircleList(List<Circle> circleList) {
        this.circleList = circleList;
    }

    public void addCircle(Circle circle){
        this.circleList.add(circle);
    }

    public void setPolygonList(List<Polygon> polygonList) {
        this.polygonList = polygonList;
    }

    public List<Polygon> getPolygonList() {
        return polygonList;
    }

    public void addPolygon(Polygon polygon){
        this.polygonList.add(polygon);
    }
}